package cn.stylefeng.guns.modular.fin.entity;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.experimental.Accessors;

import java.util.Date;

@Data
@TableName("fin_profit")
@Accessors(chain = true)
public class Profit {
    @TableId(type = IdType.AUTO)
    private Long profitId;

    private Long memberId;

    /**
     * 钱包类型
     */
    private String walletType;

    /**
     * 币种
     */
    private String coinType;

    /**
     * 盈亏金额 $
     */
    private String profitPrice;

    /**
     * 盈亏日期
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date profitDate;

    /**
     * 创建时间
     */
    private Date createTime;

    /**
     * 被记录时账户的金额 $
     */
    private String lastPrice;

}
